﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using AzukiMap.Request;
using Geometries = GisSharpBlog.NetTopologySuite.Geometries;
using AzukiMap.Layer;
using GisSharpBlog.NetTopologySuite.IO;
using GeoAPI.Geometries;

namespace AzukiMapUI
{
    public class TestData
    {
        WKTReader _wktReader;

        public TestData()
        {
            Geometries.PrecisionModel pm = new Geometries.PrecisionModel();
            Geometries.GeometryFactory gf = new Geometries.GeometryFactory();
            _wktReader = new WKTReader(gf);
        }

        public void CreateThumbData(RasterIndexLayer layer )
        {
        }

        int riNum = 0;
        RasterIndexRecord CreateRasterIndexRecord(string uri, string extent)
        {
            RasterIndexRecord record = new RasterIndexRecord();
            record.id = riNum;
            record.RasterIndex = uri;
            record.Extent = (IPolygon)_wktReader.Read(extent);

            return record;
        }
    }
}
